home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr25 / gg243774.zip / RECORD.ZIP / RECORD.MAK < prev    next >
Text File  |  1992-03-18  |  2KB  |  78 lines

  1. #****************************************************************************
  2. #  Dot directive definition area (usually just suffixes)
  3. #****************************************************************************
  4.  
  5. .SUFFIXES: .c .obj .dll .csc .sc .h .ih .ph .psc .rc .res
  6.  
  7. #****************************************************************************
  8. #  Environment Setup for the component(s).
  9. #****************************************************************************
  10.  
  11. SOMTEMP = .\somtemp
  12. SCPATH  = c:\toolkt20\sc
  13. HPATH   = c:\toolkt20\c\os2h
  14. LIBPATH = c:\toolkt20\os2lib
  15.  
  16. !if [set SMINCLUDE=.;$(SCPATH);] || \
  17.     [set SMTMP=$(SOMTEMP)] || \
  18.     [set SMEMIT=ih;h;ph;psc;sc;c;def]
  19. !endif
  20.  
  21. !if [cd $(SOMTEMP)]
  22. !  if [md $(SOMTEMP)]
  23. !    error error creating $(SOMTEMP) directory
  24. !  endif
  25. !else
  26. !  if [cd ..]
  27. !    error - Couldn't cd .. from $(SOMTEMP) directory
  28. !  endif
  29. !endif
  30.  
  31. #
  32. # Compiler/tools Macros
  33. #
  34.  
  35. CC         = icc /c /Ge- /Gd- /Se /Re /ss /Mp /Gm+
  36. LINK       = link386
  37. LDFLAGS    = /noi /map /nol /nod  /align:16
  38. #LDFLAGS    = /noi /map /nol /nod /exepack /packcode /packdata /align:16
  39. LIBS       = som.lib DDE4MBS DDE4MBM  os2386
  40.  
  41. #****************************************************************************
  42. # Set up Macros that will contain all the different dependencies for the
  43. # executables and dlls etc. that are generated.
  44. #****************************************************************************
  45.  
  46. OBJS       = record.obj
  47.  
  48. #****************************************************************************
  49. #   Setup the inference rules for compiling source code to
  50. #   object code.
  51. #****************************************************************************
  52.  
  53. .c.obj:
  54.         $(CC) -I$(HPATH) -c $<
  55.  
  56. .csc.ih:
  57. .csc.c:
  58.         sc -v -r $*.csc
  59.  
  60. all: record.dll
  61.  
  62. #
  63. # Specific Process Tag
  64. #
  65.  
  66. record.ih:  $*.csc $(HPATH)\wpdataf.h
  67.  
  68. record.obj: $*.c $*.ih $*.h  $*.sc $(HPATH)\wpdataf.h
  69.  
  70. record.dll: $(OBJS) record.res
  71.          $(LINK) $(LDFLAGS) $(OBJS),$@,,$(LIBS),$*;
  72.          rc $*.res $*.dll
  73.          mapsym record.map
  74.  
  75. record.res: record.rc
  76.          rc -r $*.rc $*.res
  77.  
  78.